package com.example.blockingqueue;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BlockingqueueApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(BlockingqueueApplication.class, args);

//        /*从容器中获取bean 开始监听 */
//        BlockingQueueConsumer blockingQueueConsumer = (BlockingQueueConsumer)run.getBean("blockingQueueConsumer");
//        blockingQueueConsumer.consumer();
    }

}
